package com.mingqijia.gassafety.job.hangzhou.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author guoliang.lao
 * @version 1.0.0
 * @ClassName CreateCityThingModel.java
 * @Description 创建物模型
 * @createTime 2022年04月08日
 */
@Data
public class RegisterCityDevice {

    @ApiModelProperty("产品ID(createCityProduct返回)")
    private String productKey;

    @ApiModelProperty("设备ID(代表的是设备唯一标识)")
    private String deviceName;

    @ApiModelProperty("设备别名(设备名称)")
    private String alias;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("地址信息")
    private DeviceLocation deviceLocation;

    @Data
    public class DeviceLocation {
        @ApiModelProperty("详细地址信息")
        private String address;

        @ApiModelProperty("纬度")
        private BigDecimal latitude;

        @ApiModelProperty("坐标系 默认：GCJ-02")
        private String coordinateSystem = "GCJ_02";

        @ApiModelProperty("经度")
        private BigDecimal longitude;
    }
}